package LinkData;

/**
 * 生成链表中节点/结点
 * 1. 数值域
 * 2. 地址域
 */
public class Node {
    //数值域
    public int no;
    public String name;
    //地址域
    public  Node next;

    //实例化链表节点时，给节点数值域赋初值
    public Node(int no, String name) {
        this.no = no;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Node{" +
                "no=" + no +
                ", name='" + name + '\'' +
                '}';
    }
}
